package com.hx.petsever.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hx.petsever.entity.adminAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper extends BaseMapper<adminAccount> {
    @Select("select * from adminaccount where username=#{name} and password=#{pass}")
    adminAccount login(@Param("name") String username, @Param("pass") String password);
}
